Page({

  /**
   * 页面的初始数据
   */
  data: {
    // 精选酒店
    selectList: [
      {
        name: '杭州海轮酒店',
        price: '100.00',
        img: '/images/demoimg/recharge.png'
      },
      {
        name: '杭州名豪大酒店',
        price: '100.00',
        img: '/images/demoimg/recharge.png'
      },
      {
        name: '杭州全季酒店',
        price: '100.00',
        img: '/images/demoimg/recharge.png'
      },
      {
        name: '顺昌大酒店',
        price: '100.00',
        img: '/images/demoimg/recharge.png'
      }
    ],
    // 热门城市轮播
    hotCity: [
      {
        name: '杭州',
        english_name: 'HANG ZHOU',
        img: '/images/demoimg/recharge.png'
      },
      {
        name: '北京',
        english_name: 'BEI JING',
        img: '/images/demoimg/recharge.png'
      },
      {
        name: '上海',
        english_name: 'SHANG HAI',
        img: '/images/demoimg/recharge.png'
      },
      {
        name: '广州',
        english_name: 'GUANG ZHOU',
        img: '/images/demoimg/recharge.png'
      }
    ],
    // 攻略
    strategy: [
      {
        name: '游美食',
        subhead: '游必有食',
        img: '/images/demoimg/recharge.png'
      },
      {
        name: '周末好去处',
        subhead: '像本地人一样生活',
        img: '/images/demoimg/recharge.png'
      },
      {
        name: '玩乐全集',
        subhead: '达人推荐攻略',
        img: '/images/demoimg/recharge.png'
      }
    ],
    // 热门城市选项
    tags: [{
        name: '北京',
        id: 0
      }, {
        name: '上海',
        id: 1
      }, {
        name: '成都',
        id: 2
      },
      {
        name: '重庆',
        id: 3
      }, {
        name: '杭州',
        id: 4
      },
      {
        name: '西安',
        id: 5
      },
      {
        name: '南京',
        id: 6
      },
      {
        name: '武汉',
        id: 7
      },
      {
        name: '厦门',
        id: 8
      },
      {
        name: '全部',
        id: 9
      },
    ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
    wx.setNavigationBarColor({
      frontColor: '#ffffff',
      backgroundColor: '#3090F4'
    });
  },

  // 跳转到搜索页面
  keySearch: function () {
    wx.navigateTo({
      url: './../localtion/index'
    })
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function() {

  }
})